﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Commerce.CSK.Web
{
    public partial class WebForm1 : System.Web.UI.Page
    {




        protected void Page_Load(object sender, EventArgs e)
        {

            
            if (!Page.IsPostBack)
            {
                AddressEntry1.CurrentAddress = new Commerce.Data.Address();
                AddressEntry1.DataBind();

                Commerce.Data.Address add = new Commerce.Data.Address(
                    "", "James", "Sawyer", "jsawyer@live.com", "21222 Park Willow Ln", "", "Katy", "TX", "77450", "US");
                AddressControl1.CurrentAddress = add;
                AddressControl1.DataBind();
            }



        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Commerce.Data.Address add = AddressEntry1.CurrentAddress; 
        }
    }
}
